<?php
	session_start();
	require_once('LeaveFormView.php');	
	require_once('LeaveManager.php');	
	
	LeaveFormView :: requestLeaveList($_SESSION['employeeNumber']);
	
	$ctr = 0;
	$r1 = LeaveManager :: getLeaveData($_SESSION['employeeNumber'], "load");
	
	while ($data = mysql_fetch_assoc($r1)) {
		$ctr++;
	}
	if ($ctr > 0) {
		LeaveFormView :: getEmployeeData($_SESSION['employeeNumber']);
	}
?>